package com.mask.im.business.model.vo;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;

@ApiModel(description = "注册的视图对象")
@Data
public class RegisterVO {

	@ApiModelProperty(value = "邮箱",required = true)
	private String email;

	@ApiModelProperty(value = "手机号",required = false,notes="备用注册属性")
	private String phone;

	@ApiModelProperty(value = "登入名",required = true)
	private String username;

	@Size(min = 6,max = 18,message = "密码长度至少为6位且不能大于18位")
	@ApiModelProperty(value = "密码")
	private String password;

	@ApiModelProperty(value = "确认密码")
	private String confirmPassword;

	@NotEmpty(message = "验证码不能为空")
	@ApiModelProperty(value = "验证码",required = true)
	private String code;
}
